#ifndef FILEBROWSER_H
#define FILEBROWSER_H
#include <QString>
#include <QListView>

class FileBrowser : public QListBox
{
    Q_OBJECT
        public:
            FileBrowser(const QString &filter, QWidget *parent = 0, const char *name = 0);
            void setDir(const QString &path);

        signals:
            void picked(const QString &fileName);

        private slots:
            void itemHighlighted(int index);
            void itemSelected(int index);

        private:
            QString nameFilter;
            QString basePath;

};

#endif // FILEBROWSER_H
